package com.lesso.cyg.sunflower.infra.assembler;

import com.lesso.cyg.sunflower.model.DatAttendanceRecord;
import com.lesso.cyg.sunflower.pojo.dto.DatAttendanceRecordDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 员工打卡记录装配器
 */
@Mapper
public interface DatAttendanceRecordAssembler {
    DatAttendanceRecordAssembler INSTANCE = Mappers.getMapper(DatAttendanceRecordAssembler.class);

    // 实体与DTO互转
    DatAttendanceRecord dtoToEntity(DatAttendanceRecordDTO dto);
    DatAttendanceRecordDTO entityToDto(DatAttendanceRecord entity);
}